<!doctype html>

<!--[if lt IE 7]>  <html class="ie ie6 lte9 lte8 lte7"> <![endif]-->
<!--[if IE 7]>     <html class="ie ie7 lte9 lte8 lte7"> <![endif]-->
<!--[if IE 8]>     <html class="ie ie8 lte9 lte8">      <![endif]-->
<!--[if IE 9]>     <html class="ie ie9 lte9">           <![endif]-->
<!--[if gt IE 9]>  <html class="ie">                    <![endif]-->
<!--[if !IE]><!--> <html>                               <!--<![endif]-->
<head>
	<base href="~~:raw($page.base_href)~" />
	<meta charset="~~:raw($page.charset)~" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<link rel="shortcut icon" href="/favicon.ico">

	<meta name="viewport" content="width=device-width" />
	<link rel="apple-touch-icon" href="/apple-touch-icon.png">
	
	<title>MorrowTwo 3 Documentation</title>
	<link rel="stylesheet" href="css/bootstrap.min.css" />

	<link rel="stylesheet" href="css/prism.css" />
	<link rel="stylesheet" href="css/style.css" />
</head>
<body>

<div class="container">
	
	<div class="row">
		<div class="col-lg-12">

			<nav class="navbar navbar-default" role="navigation">
				<div class="navbar-header">
					<a class="navbar-brand" href="#">MorrowTwo 3 Documentation</a>
				</div>

				<div class="navbar-collapse">
					<ul class="nav navbar-nav navbar-right">
						<li ~if (!:raw($show_protected_and_private)):~class="active"~endif~><a href="~~:url(:raw($page.path.relative), array('show_protected_and_private' => ''))~" title="Shows only public members and methods">Enduser view</a></li>
						<li ~if (:raw($show_protected_and_private)):~class="active"~endif~><a href="~~:url('', array('show_protected_and_private' => '1'))~" title="Shows all members and methods">Developer view</a></li>
					</ul>
				</div>
			</nav>

		</div>
	</div>

	<div class="row">
		<div class="col-lg-3">

			<div class="panel panel-default">
				<div class="panel-heading">Manual</div>
				<div class="panel-body">
					<ul class="nav">
						~foreach($pages as $node):~
							<li ~~:raw($page.path) === 'page/' . :escape($node.id) ? 'class="active"' : ''~>
								<a href="~~:url('page/' . :escape($node.id))~">~~:raw($node.title)~</a>
							</li>
						~endforeach~
					</ul>
				</div>
			</div>

			<div class="panel panel-default">
				<div class="panel-heading">Classes</div>
				<div class="panel-body">
					<ul class="nav">
						~foreach ($classes as $class):~
							<?php
							if (!isset($last_dirname)) $last_dirname = 'Morrow';
							$dirname	= str_replace('Morrow/', '', dirname(:raw($class)));
							$basename	= basename(:raw($class));

							if ($dirname !== $last_dirname) {
								if ($last_dirname != 'Morrow') echo '</li></ul>'; 
								echo '<li>';
								echo $dirname;
								echo '<ul class="nav">'; 
							}

							echo '<li';
							if (:raw($page.path) === 'class/' . :escape($class)) echo ' class="active"';
							echo '>';
							echo '<a href="' . :url('class/' . :escape($class)) . '">' . $basename . '</a>';
							echo '</li>';

							$last_dirname = $dirname;


							?>
						~endforeach~
					</ul>
				</div>
			</div>
		</div>

		<div class="col-lg-9">
			~:block('body')~
			~:endblock()~
		</div>
	</div>
</div>

<script src="javascript/prism.js"></script>
<script src="javascript/jquery.min.js"></script>
<script src="javascript/default.js"></script>

</body>
</html>
